package com.glb.gilibuy.web.common;

import com.glb.gilibuy.web.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Description:
 * @Author: Yingtian qian
 * @Date: 2021/8/4 11:37
 */
@Api(tags = "视图模块")
@Controller
public class ViewController extends BaseController {

    @ApiOperation(value = "获取登录注册页面", notes = "获取登录注册页面", produces = "text/html")
    @GetMapping("/loginPage")
    public String loginPage() {
        return "mall/checkout";
    }

    @ApiOperation(value = "获取个人中心页面", notes = "获取个人中心页面", produces = "text/html")
    @GetMapping("/user/myAccountPage")
    public String myAccountPage() {
        return "mall/my_account";
    }

    @ApiOperation(value = "获取首页页面", notes = "获取首页页面", produces = "text/html")
    @GetMapping("/homePage")
    public String homePage() {
        return "mall/home";
    }

    @ApiOperation(value = "获取购物车页面", notes = "获取购物车页面", produces = "text/html")
    @GetMapping("/user/cartPage")
    public String cartPage() {
        return "mall/cart";
    }

    @ApiOperation(value = "获取关于我们页面", notes = "获取关于我们页面", produces = "text/html")
    @GetMapping("/aboutUsPage")
    public String aboutUsPage() {
        return "mall/about_us";
    }
    @ApiOperation(value = "获取订单付款页面", notes = "获取订单付款页面", produces = "text/html")
    @GetMapping("/user/payOrder")
    public String payOrderPage() {
        return "mall/payOrder";
    }

    @ApiOperation(value = "获取商品详情页面", notes = "获取商品详情页面", produces = "text/html")
    @GetMapping("/detailPage")
    public String detailPage() {
        return "mall/simple_product";
    }

    @ApiOperation(value = "获取订单页面", notes = "获取订单页面", produces = "text/html")
    @GetMapping("/user/orderPage")
    public String orderPage() {
        return "mall/order";
    }

    @ApiOperation(value = "获取地址管理页面", notes = "获取地址管理页面", produces = "text/html")
    @GetMapping("/user/addressPage")
    public String addressPage() {
        return "mall/address";
    }

    @ApiOperation(value = "获取售后页面", notes = "获取售后页面", produces = "text/html")
    @GetMapping("/user/afterSalePage")
    public String afterSalePage() {
        return "mall/after_sale";
    }

    @ApiOperation(value = "获取用户协议页面", notes = "获取用户协议页面", produces = "text/html")
    @GetMapping("/agreementPage")
    public String agreementPage() {
        return "mall/user_agreement";
    }

    @ApiOperation(value = "获取结算页面", notes = "获取结算页面", produces = "text/html")
    @GetMapping("/settlementPage")
    public String settlementPage() {
        return "mall/settlementPage";
    }

    @ApiOperation(value = "获取订单详情页面", notes = "获取订单详情页面", produces = "text/html")
    @GetMapping("/orderDetailPage")
    public String orderDetail() {
        return "mall/order_detail";
    }


}
